<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vforobj</title>
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
<!--
(v,k,i) 分别代表 value  key  index ,这个顺序是固定的，不可变， 分别是每个属性的值，每个属性name,每个数据的索引
-->
            <li v-for="(v,k,i) in student">
                {{i}}---{{k}}---{{v}}
            </li>
        </ul>
    </div>
</body>
<script>
    new Vue({
        el: "#app",
        data: {
            student: {
                name: "张三",
                age: 18,
                address: "非求路求学问18号"
            }
        }
    });
</script>
</html>